﻿using IBLL;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace WebApi.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class AddressController : ControllerBase,IAddressBLL
    {
        public AddressController(IAddressBLL addressBLL)
        {
            AddressBLL = addressBLL;
        }

        public IAddressBLL AddressBLL { get; }
        [HttpGet]
        public IQueryable<Address> GetAllAddress()
        {
            return AddressBLL.GetAllAddress();
        }
    }
}
